package com.hkts.management.unattended.weightingInfo.entity;

import java.io.Serializable;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zy
 * @since 2021-09-17
 */
public class WeightingInfo extends Model<WeightingInfo> {

private static final long serialVersionUID=1L;

                    @TableId(value = "id", type = IdType.AUTO)
                private Long id;
    /**
     * 过磅单号
     */
        private String weighingCode;
    /**
     * 订单号
     */
        private String orderId;
    /**
     * 运单号
     */
        private String waybillCode;
    /**
     * 一次过磅时间
     */
        private LocalDateTime firstWeighingTime;
    /**
     * 二次过磅时间
     */
        private String secondWeighingTime;
    /**
     * 磅秤名称
     */
        private String scaleName;
    /**
     * 门禁时间
     */
        private LocalDateTime entranceGuardTime;
    /**
     * 门禁名称
     */
        private String entranceGuardName;
    /**
     * 毛重
     */
        private BigDecimal grossWeight;
    /**
     * 皮重
     */
        private BigDecimal tareWeight;
    /**
     * 净重
     */
        private BigDecimal netWeight;
    /**
     * 过磅状态
     */
        private Integer status;
    /**
     * 手持机操作人
     */
        private String operator;
    /**
     * 手持机操作时间
     */
        private LocalDateTime operatorTime;
    /**
     * 磅单状态
     */
        private Integer weighingStatus;


    public Long getId(){
            return id;
            }

        public void setId(Long id) {
            this.id = id;
            }

    public String getWeighingCode(){
            return weighingCode;
            }

        public void setWeighingCode(String weighingCode) {
            this.weighingCode = weighingCode;
            }

    public String getOrderId(){
            return orderId;
            }

        public void setOrderId(String orderId) {
            this.orderId = orderId;
            }

    public String getWaybillCode(){
            return waybillCode;
            }

        public void setWaybillCode(String waybillCode) {
            this.waybillCode = waybillCode;
            }

    public LocalDateTime getFirstWeighingTime(){
            return firstWeighingTime;
            }

        public void setFirstWeighingTime(LocalDateTime firstWeighingTime) {
            this.firstWeighingTime = firstWeighingTime;
            }

    public String getSecondWeighingTime(){
            return secondWeighingTime;
            }

        public void setSecondWeighingTime(String secondWeighingTime) {
            this.secondWeighingTime = secondWeighingTime;
            }

    public String getScaleName(){
            return scaleName;
            }

        public void setScaleName(String scaleName) {
            this.scaleName = scaleName;
            }

    public LocalDateTime getEntranceGuardTime(){
            return entranceGuardTime;
            }

        public void setEntranceGuardTime(LocalDateTime entranceGuardTime) {
            this.entranceGuardTime = entranceGuardTime;
            }

    public String getEntranceGuardName(){
            return entranceGuardName;
            }

        public void setEntranceGuardName(String entranceGuardName) {
            this.entranceGuardName = entranceGuardName;
            }

    public BigDecimal getGrossWeight(){
            return grossWeight;
            }

        public void setGrossWeight(BigDecimal grossWeight) {
            this.grossWeight = grossWeight;
            }

    public BigDecimal getTareWeight(){
            return tareWeight;
            }

        public void setTareWeight(BigDecimal tareWeight) {
            this.tareWeight = tareWeight;
            }

    public BigDecimal getNetWeight(){
            return netWeight;
            }

        public void setNetWeight(BigDecimal netWeight) {
            this.netWeight = netWeight;
            }

    public Integer getStatus(){
            return status;
            }

        public void setStatus(Integer status) {
            this.status = status;
            }

    public String getOperator(){
            return operator;
            }

        public void setOperator(String operator) {
            this.operator = operator;
            }

    public LocalDateTime getOperatorTime(){
            return operatorTime;
            }

        public void setOperatorTime(LocalDateTime operatorTime) {
            this.operatorTime = operatorTime;
            }

    public Integer getWeighingStatus(){
            return weighingStatus;
            }

        public void setWeighingStatus(Integer weighingStatus) {
            this.weighingStatus = weighingStatus;
            }

    public static final String ID ="id";

    public static final String WEIGHING_CODE ="weighing_code";

    public static final String ORDER_ID ="order_id";

    public static final String WAYBILL_CODE ="waybill_code";

    public static final String FIRST_WEIGHING_TIME ="first_weighing_time";

    public static final String SECOND_WEIGHING_TIME ="second_weighing_time";

    public static final String SCALE_NAME ="scale_name";

    public static final String ENTRANCE_GUARD_TIME ="entrance_guard_time";

    public static final String ENTRANCE_GUARD_NAME ="entrance_guard_name";

    public static final String GROSS_WEIGHT ="gross_weight";

    public static final String TARE_WEIGHT ="tare_weight";

    public static final String NET_WEIGHT ="net_weight";

    public static final String STATUS ="status";

    public static final String OPERATOR ="operator";

    public static final String OPERATOR_TIME ="operator_time";

    public static final String WEIGHING_STATUS ="weighing_status";

@Override
protected Serializable pkVal(){
            return this.id;
        }

@Override
public String toString() {
        return "WeightingInfo{" +
                ", id=" + id +
                ", weighingCode=" + weighingCode +
                ", orderId=" + orderId +
                ", waybillCode=" + waybillCode +
                ", firstWeighingTime=" + firstWeighingTime +
                ", secondWeighingTime=" + secondWeighingTime +
                ", scaleName=" + scaleName +
                ", entranceGuardTime=" + entranceGuardTime +
                ", entranceGuardName=" + entranceGuardName +
                ", grossWeight=" + grossWeight +
                ", tareWeight=" + tareWeight +
                ", netWeight=" + netWeight +
                ", status=" + status +
                ", operator=" + operator +
                ", operatorTime=" + operatorTime +
                ", weighingStatus=" + weighingStatus +
        "}";
        }
        }
